/*
 * Copyright 2013-2015 the original author or authors.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.xdtech.jmax.vo;

import java.util.Date;
import java.util.Random;

import org.apache.commons.lang.math.RandomUtils;

import com.xdtech.common.utils.DateUtil;
import com.xdtech.common.utils.DateUtil.DateStyle;
import com.xdtech.web.freemark.item.GridColumn;

/**
 * 
 * @author max.zheng
 * @create 2015-2-12下午10:57:27
 * @since 1.0
 * @see
 */
public class DeviceEventLogItem {
//	time=2014-07-31 10:04:15	pin=0	cardno=0	eventaddr=0	event=206	inoutstatus=2	verifytype=200	index=2059
	private static int indexLog = 0;
	@GridColumn(title="事件时间",width=150)
	private String time;
	public DeviceEventLogItem() {
		super();
		this.time = DateUtil.dateToString(new Date(), DateStyle.YYYY_MM_DD_HH_MM_SS);
		this.pin = RandomUtils.nextInt(1000)+"";
		this.cardno = "123";
		this.eventaddr = "0";
		this.event = "306";
		this.inoutstatus = "2";
		this.verifytype = "200";
		this.index = (++indexLog)+"";
		
	}
	@GridColumn(title="人员PIN号")
	private String pin;
	@GridColumn(title="卡号")
	private String cardno;
	@GridColumn(title="事件触发点")
	private String eventaddr;
	@GridColumn(title="事件编码")
	private String event;
	@GridColumn(title="出入状态")
	private String inoutstatus;
	@GridColumn(title="验证编码")
	private String verifytype;
	@GridColumn(title="事件索引")
	private String index;
	public String getTime() {
		return time;
	}
	public void setTime(String time) {
		this.time = time;
	}
	public String getPin() {
		return pin;
	}
	public void setPin(String pin) {
		this.pin = pin;
	}
	public String getCardno() {
		return cardno;
	}
	public void setCardno(String cardno) {
		this.cardno = cardno;
	}
	public String getEventaddr() {
		return eventaddr;
	}
	public void setEventaddr(String eventaddr) {
		this.eventaddr = eventaddr;
	}
	public String getEvent() {
		return event;
	}
	public void setEvent(String event) {
		this.event = event;
	}
	public String getInoutstatus() {
		return inoutstatus;
	}
	public void setInoutstatus(String inoutstatus) {
		this.inoutstatus = inoutstatus;
	}
	public String getVerifytype() {
		return verifytype;
	}
	public void setVerifytype(String verifytype) {
		this.verifytype = verifytype;
	}
	public String getIndex() {
		return index;
	}
	public void setIndex(String index) {
		this.index = index;
	}
	
	
}
